package itheima.com.Demo01.Tesk.Tesk03;


import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Stream;

public class Task01 {
    public static void main(String[] args) {


        String[] S1 = {"黑龙江省", "浙江省", "江西省", "广东省", "福建省"};
        String[] S2 = {"哈尔滨", "杭州", "南昌", "广州", "福州"};



        Map<String, String> map = new HashMap<>();
        for (int i = 0; i < S1.length; i++) {
            map.put(S1[i], S2[i]);
        }

        Set<Map.Entry<String, String>> entries = map.entrySet();
        for (Map.Entry<String, String> entry : entries) {
            String key = entry.getKey();
            String value = entry.getValue();
            System.out.println(key + "---" + value);

        }


    }
}
